PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-07-11 10:21:44.296910+00:00 (UTC)
In US/Central Time, this is 2024-07-11 05:21:44.296910-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/ba55b2a8112c87e8f5bdaeac0e43e8c175e8f20abdef32e59566e284311a9983.png
We are just generating a random time serie here.
../_images/1bac4a5e1bcfa7eda21284318d99d9b8c936a34919957abcce737c5e9c70170b.png
../_images/c0e0f7e5946f825ef6fd77aff13c40126696e9436ed86b162a2ea7f45d9308d9.png